<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{if $title}><{$title}>,<{$config.company}><{else}><{$config.title}>,<{$config.company}><{/if}></title>
<meta name="description" content="<{$config.description}>" />
<meta name="keywords" content="<{$config.keyword}>" />
<script src="<{$config.weburl}>/script/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="<{$config.weburl}>/script/base.js" type="text/javascript"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/jquery.flexslider-min.js"></script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<{$config.weburl}>/module/points/templates/points.css">
</head>
<body>
<div id="shortcut">
    <div class="w clearfix">
        <ul class="fl">
            <li><script src="<{$config.weburl}>/login_statu.php"></script></li>
        </ul>
        <ul class="fr">
            <li><a href="<{$config.weburl}>">首页</a></li>
            <li><a href="<{$config.weburl}>/main.php">我的商城</a></li>
            <li><a class="active" href="<{$config.weburl}>/?m=points">积分商城</a></li>
            <li><a href="<{$config.weburl}>/main.php?m=points&s=admin_points">我的积分</a></li>
            <li><a href="<{$config.weburl}>/main.php?m=points&s=admin_points_goods">我的礼品</a></li>
        </ul>
    </div>
</div>
<div class="logobar clearfix">
	<div class="w">
    	<div class="fl">
            <a title="<{$config.company}>" href="<{$config.weburl}>"><img src="<{if $config.logo}><{$config.logo}><{else}><{$config.weburl}>/image/logo.gif<{/if}>" /></a>
            <s></s>
            <b></b>
        </div>
        <div class="fr">
            <div class="search">
            <form method="get" class="form" action="<{$config.weburl}>/">
                <input id="m" name="m" type="hidden" value="points" />
                <input id="s" name="s" type="hidden" value="list" />
                <input type="text" autocomplete="off" placeholder="请输入关键字" value="<{$smarty.get.key}>" id="key" name="key" class="text">
                <input type="submit" class="search_button" value="搜&nbsp;索">
			</form>
            </div>
        </div>
    </div>
</div>
<div class="menubar clearfix">
    <div class="w">
        <div class="categorys fl">
			<h2><a href="javascript:void(0);">全部商品分类<b></b></a></h2>
            <div class="list" <{if $smarty.get.s=='index'}>style="display:block;"<{/if}> >    
				<div class="i_list">
                    <{foreach item=list key=num from=$cat}>
                    <ul>
                    	<li class="tit"><b><a href="<{$config.weburl}>?m=points&s=list&id=<{$list.id}>"><{$list.catname}></a></b></li>
                        <{if $list.scat}>
                        <li class="i-tit">
                            <{foreach item=slist key=key from=$list.scat}>
                            <{if ($key<4 and ($num+1)%3!=0 ) or ($key<2 and ($num+1)%3==0 ) }>
                            	<a href="<{$config.weburl}>?m=points&s=list&id=<{$slist.id}>"><{$slist.catname}></a>
                            <{/if}>
                            <{/foreach}>
                        </li>
                        <{/if}>
                    </ul>
                    <{/foreach}>
                </div>
            </div>
        </div>
        
        <ul class="items fl">
            <li <{if !$smarty.get.id}>class="current"<{/if}>><a href="<{$config.weburl}>?m=points">首页</a></li>
            <{foreach item=list key=num from=$cat}>
                <li <{if $smarty.get.id==$list.id}>class="current"<{/if}>><a href="<{$config.weburl}>?m=points&s=list&id=<{$list.id}>"><{$list.catname}></a></li>
            <{/foreach}>
         </ul>
    </div>
</div>
